x = [0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
10.5
11
11.5
12
12.5
13
13.5
14
14.5
15
15.5
16
16.5
17
17.5
18
18.5
19
19.5
20
20.5
21
21.5
22
22.5
];



y1 = [30
36.71625
42.96625
48.7875
54.2175
59.2975
64.0675
68.575
72.865
76.97875
80.97375
84.89875
88.83
92.82375
96.955
101.29375
105.91
110.85875
116.15875
121.75625
127.54
133.41625
139.34375
145.32875
151.37875
157.50875
163.7325
170.05875
176.505
183.07875
189.79375
196.655
203.67375
210.85625
218.21
225.735
233.43375
241.3125
249.3725
257.51625
265.749625
274.010125
282.352375
290.747125
299.23075
307.7575
];


y2 = [50
54.60625
59.35
64.16875
69.075
74.1175
79.2775
84.555
89.97375
95.50125
101.17625
106.9075
112.67675
118.5105
124.4125
130.42
136.49825
142.696
148.96875
155.27835
161.5596
167.82145
174.100825
180.454575
186.890825
193.4127
200.055825
206.805825
213.6877
220.685825
227.817075
235.09645
242.51645
250.0877
257.81145
265.669575
273.670825
281.808325
290.078325
298.42895
306.8493875
315.3133875
323.8632625
332.4667
341.14945
349.893325
];


y3 = [40
47.35375
54.565
61.69
68.68375
75.565
82.3075
88.945
95.5
101.97625
108.3775
114.72625
121.02625
127.29625
133.55125
139.795
146.04625
152.3125
158.62
164.96125
171.35875
177.8425
184.41625
191.08375
197.84125
204.685
211.67125
218.76625
226
233.33875
240.80125
248.41
256.1425
264.0175
272.0275
280.13875
288.36625
296.69125
305.10625
313.6075
322.16875
330.7975
339.5275
348.32125
357.1975
366.15625
];

x11=linspace(min(x),max(x));
y11=interp1(x,y1,x11,'cubic');

x22=linspace(min(x),max(x));
y22=interp1(x,y2,x22,'cubic');

x33=linspace(min(x),max(x));
y33=interp1(x,y3,x33,'cubic');

Line1 = line(x11,y11);
Line2 = line(x22,y22);
Line3 = line(x33,y33);

set(Line1, 'LineStyle', '--','LineWidth', 1,  'Color', [132  94  194]/255)
set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)
set(Line3, 'LineStyle', '--','LineWidth', 1,  'Color', [0  143  122]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:5:25,  'YTick', 0:50:500,...     % 刻度位置、间隔
         'Xlim' ,[0 25],'Ylim' ,[0 500], ...          % 坐标轴范围
         'Xticklabel',{[0:5:25]},...                   % X坐标轴刻度标签
         'Yticklabel',{[0:50:500]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('longitudinal position (m)');
hLegend = legend([Line1,Line2,Line3], ...
                 'FV', 'SV','LV', ...
                 'Location', 'northeast');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])

